import request from '@/utils/request';

export function queryAddressList(data) {
	//友情链接分页查询
	return request({
		method: 'get',
		url: '/tbSysAddress/queryFriendlyLink',
		params: data,
	})
}

export function addAddress(data) {
	//新增友情链接
	return request({
		method: 'post',
		url: '/tbSysAddress/add',
		data,
	})
}

export function updateAddress(data) {
	//修改友情链接
	return request({
		method: 'post',
		url: '/tbSysAddress/update',
		data,
	})
}

export function deleteAddress(id) {
	//删除友情链接
	return request({
		method: 'get',
		url: '/tbSysAddress/delete/' + id
	})
}

export function queryAddress(id) {
	//友情链接详情
	return request({
		method: 'get',
		url: '/tbSysAddress/query/' + id
	})
}